﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="admin_customlist.aspx.cs" Inherits="Lawyer.Web.Admin.admin_customlist" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">    

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="mainContent" runat="server">
<div class="main-content">
        <header>
                            <h2>
                            <ul class="action-buttons clearfix">
                            <li>
                            <asp:Button ID="btnAddCustom" runat="server" CssClass="button" Text="New Cantact" 
                                    onclick="btnAddCustom_Click" /> </asp:Button></li>

                            </ul>
                                Customs
                            </h2>
                        </header>
        <section class="container_6 clearfix">
                            <div class="grid_6">

                                
                                <asp:GridView ID="gridView" CssClass="display" runat="server" AllowPaging="True" Width="100%" CellPadding="3"  OnPageIndexChanging ="gridView_PageIndexChanging"
                    BorderWidth="1px" DataKeyNames="" OnRowDataBound="gridView_RowDataBound"
                    AutoGenerateColumns="false" PageSize="100"  RowStyle-HorizontalAlign="Center" OnRowCreated="gridView_OnRowCreated">

                    <Columns>
                    
                            
		<asp:BoundField DataField="CustomID" HeaderText="CustomID" ReadOnly="false" Visible="false" /> 
		<asp:HyperLinkField HeaderText="CustomName" DataNavigateUrlFields="CustomID" DataNavigateUrlFormatString="admin_customdetail.aspx?id={0}" ItemStyle-CssClass="zoombox"
                                DataTextField="FullName"/>
		<asp:BoundField DataField="ShowSex" HeaderText="Gender"   /> 
		<asp:BoundField DataField="Age" HeaderText="Age"   /> 
		<asp:BoundField DataField="Email" HeaderText="Email"   /> 
		<asp:BoundField DataField="Telphone" HeaderText="Telphone"   /> 
		<asp:BoundField DataField="City" HeaderText="City"   /> 
        
                            
                          
                            <asp:HyperLinkField HeaderText="Update"  ItemStyle-CssClass="zoombox"   DataNavigateUrlFields="CustomID" DataNavigateUrlFormatString="customupdate.aspx?id={0}"
                                Text="Update" Visible="false"  />
                            <asp:HyperLinkField HeaderText="Detail" DataNavigateUrlFields="CustomID" DataNavigateUrlFormatString="Show.aspx?id={0}"
                                                            Text="Delete" Visible="false"  />
                        </Columns>
                </asp:GridView>
                            </div>
                            </section>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="SideBar" runat="server">
<nav>
    <a class="chevron" href="#">»</a>
    <ul>
        <li><a href="admin_customadd.aspx">New Contact</a></li>
        <li class="<%=typeall %>"><a href="admin_customlist.aspx">All List</a></li>
        <li class="<%=type0 %>"><a href="admin_customlist.aspx?type=0">My Contact</a></li>
        <li class="<%=type1 %>"><a href="admin_customlist.aspx?type=1">Other Contact</a></li>
    </ul>
</nav>
</asp:Content>